package com.niit.agricstore.enu;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum NoticeTypeEnum {

        SYS_ADMIN(1, "系统管理公告"),
        NT_SELL(2, "优惠特卖通知"),
        NT_HOLIDAY(3, "节假日通知");

        @EnumValue
        private Integer key;

        @JsonValue
        private String display;


        NoticeTypeEnum(Integer key, String display) {
        this.key = key;
        this.display = display;
     }

        public Integer getKey() {
            return key;
        }

        public String getDisplay() {
            return display;
        }
    }


